﻿#ifndef FACELOGIN_H
#define FACELOGIN_H

#include <QWidget>
#include <QMenu>
#include <QMouseEvent>
#include <QMessageBox>

#include "alltools.h"

namespace Ui {
class FaceLogin;
}

class FaceLogin : public QWidget
{
    Q_OBJECT

public:
    explicit FaceLogin(QWidget *parent = nullptr);
    ~FaceLogin();
    QMap<QString,QString> UserInfo;

    void showUserInfo();

protected:
    void mousePressEvent(QMouseEvent *e);
    void mouseMoveEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);

signals:
    void FacetoMainFunc(QMap<QString,QString> res);
    void FacetoLogin();

private slots:

    void on_pushButtonBack_clicked();

    void on_pushButtonCheck_clicked();

private:
    Ui::FaceLogin *ui;
    QPoint last;
    bool statusRes;
    int errorFace;
    QMessageBox OK;
    QMessageBox NO;
};

#endif // FACELOGIN_H
